package cn.zftt.quartz.service;

import cn.zftt.quartz.model.Job;
import cn.zftt.quartz.model.JobLog;
import cn.zftt.quartz.model.Page;
import org.quartz.SchedulerException;

/**
 * @author zhangfeng
 */
public interface JobService {

    Page<Job> find(Job job) throws SchedulerException;

    void add(Job job) throws ClassNotFoundException, SchedulerException;

    void remove(Job job) throws SchedulerException;

    void runOnce(Job job) throws SchedulerException;

    void pause(Job job) throws SchedulerException;

    void resume(Job job) throws SchedulerException;

    void reschedule(Job job) throws SchedulerException;

    Page logs(JobLog jobLog);
}
